package com.dragon.mmochat.model.kefu;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.dragon.mmochat.model.MmochatSerial;

public class MmochatKefuQuestion {
	private long id = new Date().getTime();
	private String headInfo = "";
	private List<String> content = new ArrayList<String>();
	private int roleId;
	private int bigMoney = 0;
	private boolean dealed = false;// 客服是否有过处理
	private boolean replied = false; // 是否已答复
	private boolean needReply = true; // 是否需要玩家回复
	private long createTime = System.currentTimeMillis();// 问题创建时间
	private long firstReplyTime = 0;// 第一次回答时间

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getHeadInfo() {
		return headInfo;
	}

	public void setHeadInfo(String headInfo) {
		this.headInfo = headInfo;
	}

	public List<String> getContent() {
		return content;
	}

	public void setContent(List<String> content) {
		this.content = content;
	}

	public void addContent(String c) {
		content.add(c);
	}

	// 获取最后一条消息
	public String getLastContent() {
		int size = content.size();
		if (size > 0) {
			return content.get(size - 1);
		}
		return null;
	}

	public int getRoleId() {
		return roleId;
	}

	public void setRoleId(int roleId) {
		this.roleId = roleId;
	}

	public int getBigMoney() {
		return bigMoney;
	}

	public void setBigMoney(int bigMoney) {
		this.bigMoney = bigMoney;
	}

	public boolean isReplied() {
		return replied;
	}

	public void setReplied(boolean replied) {
		this.replied = replied;
	}

	public boolean isNeedReply() {
		return needReply;
	}

	public void setNeedReply(boolean needReply) {
		this.needReply = needReply;
	}

	public boolean isDealed() {
		return dealed;
	}

	public void setDealed(boolean dealed) {
		this.dealed = dealed;
	}

	public long getCreateTime() {
		return createTime;
	}

	public void setCreateTime(long createTime) {
		this.createTime = createTime;
	}

	public long getFirstReplyTime() {
		return firstReplyTime;
	}

	public void setFirstReplyTime(long firstReplyTime) {
		this.firstReplyTime = firstReplyTime;
	}

}
